Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 20, 2025 01:13
Conventional Commits Cheatsheet
@DanWBR
DanWBR / dwsim_automation.py
Last active December 20, 2025 01:13
Create, run and save a new DWSIM simulation in Python
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
dwsimpath = "C:\\Users\\Daniel\\AppData\\Local\\DWSIM8\\"
@DanWBR
DanWBR / dwsim_automation_sample2.py
Last active December 20, 2025 01:12
DWSIM Automation Sample in Python - Create a Flowsheet with a Distillation Column for Water/Acetone/Ethanol Separation (requires DWSIM v8.4.5 or newer)
# remove the following two lines to run on linux
import pythoncom
pythoncom.CoInitialize()
import clr
from System.IO import Directory, Path, File
from System import String, Environment
dwsimpath = "C:\\Users\\danie\\AppData\\Local\\DWSIM\\"
@jweinst1
jweinst1 / lztzsort.rs
Last active December 20, 2025 01:11
Automatic Sorting in Rust with bit RZ and LZ instructions
fn get_eq_or_gt(num:u64, target:u64) -> Option<u64> {
if target > 63 {
return None;
}
let shifted = num >> target;
if shifted == 0 {
return None;
}
return Some(shifted.trailing_zeros() as u64 + target);
}
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@Klerith
Klerith / testing-configuration.md
Last active December 20, 2025 01:08
Configuración de Vitest + React Testing Library
@klutzyT
klutzyT / glass_tut.md
Last active December 20, 2025 01:06
Disable Liquid glass and revert ui elements on iOS 26.1 and below

Disable liquid glass on iOS 26.1 and below via feature flags

This is a very last minute guide so if you have problems message me on discord @klutzyt
But also note that I am not a dev, I basically used other peoples premade tools and knowledge to do this.
this also can work on 26.2 DEV BETA 1 but i left it out of everything to reduce confusion

What is this

This guide is dedicated to post I made on twitter a little while back Here

WARNING

I nor any developer of the tools required, are responsible for bricked devices, lost data, or any other issues that can happen. Please be responsible and back up your data in any way, Whether thats a iCloud backup or a local iTunes/Finder backup.

Warning Part 2

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 20, 2025 00:45
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active December 20, 2025 00:41
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active December 20, 2025 00:32
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!